package cn.itcast.zt.java8.mapstruct.objlist;

import cn.itcast.zt.java8.mapstruct.BaseMapping;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * create by zhangtian105 on 2021/7/28
 */
@Mapper(uses = {AABBMapping.class})
public interface ABMapping extends BaseMapping<A, B> {
    @Mappings({
            @Mapping(target = "idCard", source = "id"),
            @Mapping(target = "username", source = "name"),
            @Mapping(target = "bb", source = "aa")
    })
    B sourceToTarget(A a);


}
